The animate function is used to apply the custom animation effect to elements. Syntax :
$(selector).animate({params}, [duration], [easing], [callback])
Here,
* "param
" defines the CSS properties on which you want to apply the animation.
* "duration
" specify how long the animation run. It can be one of the following values : "slow
," "fast
," "normal
" or milliseconds
* "easing
" is the string which specifies the function for the transition.
* "callback
" is the function which we want to run once the animation effect is complete.